package com.liuda066.forumssm.services;

import com.liuda066.forumssm.model.Article;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/9/4 22:26
 */
public interface IArticleService {
    List<Article> selectAll();

    List <Article> selectByBoardId(Long boardId);

    List<Article> selectByUserId(Long userId);
    List<Article> selectDetailsByContent(String content);


    @Transactional
    void create(Article article);

    Article selectDetailById(Long id);

    void modify(Long id , String title,String content);

    void thumbsUpById(Long id);

    @Transactional
    void deleteById(Long id);
}
